{messages}

<table width="100%" class="grid">
	<tr>
		<th width="1%">{tool name='plus' action='edit' id=null}</th>
		<th width="20%">{order name="username" title="user.username"|t}</th>
		<th>{order name="name" title="user.name"|t}</th>
		<th width="20%">{'user.role'|t}</th>
		<th width="5%">{'user.active'|t}</th>
	</tr>
{foreach from=$data item="row"}
	<tr>
		<td class="nowrap">
			{tool name='pencil' action='edit' id=$row.user_id}
			{tool name='trash' action='delete' id=$row.user_id}
		</td>
		<td>
			<span class="icon ui-icon ui-icon-person"></span>
			{$row.username|escape}
		</td>
		<td>{$row.name|escape}</td>
		<td>{"role.`$row.role`"|t}</td>
		<td class="nowrap">{"user.active.`$row.is_active`"|t}</td>
	</tr>
{/foreach}
</table>

{$data}
